Skip to content

feat: API pipeline run get has execution summary#97

Open
yuechao-qin wants to merge 1 commit intoycq/api_pipeline_run_list_has_endedfrom
ycq/api_pipeline_run_get_has_ended
Open

feat: API pipeline run get has execution summary#97
yuechao-qin wants to merge 1 commit intoycq/api_pipeline_run_list_has_endedfrom
ycq/api_pipeline_run_get_has_ended

Conversation

@yuechao-qin
Copy link
Copy Markdown
Collaborator

@yuechao-qin yuechao-qin commented Feb 17, 2026

TL;DR

Added execution statistics to the pipeline run get endpoint (GET /api/pipeline_runs/{id}).

What changed?

  • Enhanced the get method to optionally include execution statistics
  • Added a new parameter include_execution_stats (default: False) to the get method
  • Extracted the execution stats population logic into a new helper method _populate_execution_stats

How to test?

  1. Call the pipeline run get endpoint with include_execution_stats=True
  2. Verify that the response includes execution status statistics and summary
  3. Run the new tests in TestPipelineRunServiceGet class to ensure the functionality works as expected

Run the new test cases in tests/test_api_server_sql.py:

pytest tests/test_api_server_sql.py

Why make this change?

image.png

Copy link
Copy Markdown
Collaborator Author

yuechao-qin commented Feb 17, 2026

next_page_token=next_page_token,
)

def _populate_execution_stats(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, I prefer functions that return value, rather than methods that modify things in-palce.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuechao-qin Seems like this comment is not addressed

@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_get_has_ended branch from 96dfb6c to 034f57b Compare February 20, 2026 04:28
@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_list_has_ended branch from 489c797 to 3df5bde Compare February 20, 2026 04:28
@yuechao-qin yuechao-qin requested a review from Ark-kun February 20, 2026 04:33
@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_list_has_ended branch from 3df5bde to 5014f69 Compare February 21, 2026 02:41
@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_get_has_ended branch from 034f57b to b25a858 Compare February 21, 2026 02:41
@yuechao-qin yuechao-qin changed the base branch from ycq/api_pipeline_run_list_has_ended to graphite-base/97 April 4, 2026 04:50
@yuechao-qin yuechao-qin requested a review from morgan-wowk April 4, 2026 05:03
@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_get_has_ended branch from b25a858 to 8bb91aa Compare April 4, 2026 05:17
@yuechao-qin yuechao-qin changed the base branch from graphite-base/97 to ycq/api_pipeline_run_list_has_ended April 4, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants